#!/bin/bash

allow=0
deny=0

txt=$(cat /etc/passwd | awk -F: '{print $NF}')
for line in $txt ;do
    if [ $line == "/bin/bash" ];then
        let allow=$allow+1
    elif [ $line == "/sbin/nologin" ];then
       ((deny++))
    fi

done

echo "$allow"
